home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4577 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  667 b 

  1. Path: jupiter.planet.net!usenet
  2. From: Chris Kemp <chrisk@paladn.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: cin without pause
  5. Date: 31 Jan 1996 02:58:42 GMT
  6. Organization: Paladin Consultants, Inc.
  7. Message-ID: <4emlt2$h7o@jupiter.planet.net>
  8. NNTP-Posting-Host: denv11.planet.net
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.2N (Windows; I; 32bit)
  13.  
  14. How can I do this:
  15.  
  16. I want to loop continuously
  17.     checking the input buffer
  18.     if there's somthing in the buffer ending with a /n {
  19.         read it and process 
  20.     }
  21.     else{
  22.         put whatever is there back and
  23.         do some other stuff
  24.     }
  25. }
  26.  
  27.